package com.oop5;

/**
 * Created by L.jp
 * Description:
 * User: 86189
 * Date: 2022-09-18
 * Time: 17:46
 */
public class Student {
    //属性：
    String name;
    int age;
    static String school;
    
    //这是一个main方法，是程序的入口：
    public static void main(String[] args) {
        Student.school = "大学";
        //创建学生对象：
        Student s1 = new Student();
        s1.name = "张三";
        s1.age = 19;
        //s1.school = "大学";
        Student s2 = new Student();
        s2.name = "李四";
        s2.age = 21;
        //s2.school = "大学";
        System.out.println(s2.school);
        
    }
}